package com.swak.reactivex.transport;

import java.util.Collection;

import com.swak.exception.RemotingException;
import com.swak.exception.ServerException;
import com.swak.registry.URL;

public interface ExchangeServer {

	public URL url();

	public void start() throws ServerException;

	public void close() throws ServerException;

	void send(Object message, boolean sent) throws RemotingException;

	Collection<ExchangeChannel> getChannels();
}
